a=input('Pleass number:')

j=0
lit=[]

def gen(numb):
	if numb>1:
		for i in range(2,numb):
			if numb%i==0:
				#print i
				#lit.append(i)
				print i,'*',numb//i,'=',numb
				gen(numb//i)
				lit.append(i)
				break

		else:
			print numb,'no zhiyinshu'

	else:
		print numb,'bushi zhishu'


gen(a)

print lit
list_numb=len(lit)
while list_numb>0:
	list_numb-=1
	#print list_numb
	print lit[list_numb]
	